package com.tang.bean;

public class Book {
  private Integer bookId;
  private String bookName;
  private String author;
  private Double price;
  private Integer sales;
  private Integer stock;
  private String imgPath;
  private String typeId;
  private String typeName;
  public Book() {
  }

  public String getTypeName() {
    return typeName;
  }

  public void setTypeName(String typeName) {
    this.typeName = typeName;
  }

  public Book(Integer bookId, String bookName, String author, Double price, Integer
          sales, Integer stock, String imgPath, String typeId, String typeName) {
    this.bookId = bookId;
    this.bookName = bookName;
    this.author = author;
    this.price = price;
    this.sales = sales;
    this.stock = stock;
    this.imgPath = imgPath;
    this.typeId=typeId;
    this.typeName=typeName;
  }

  public String getTypeId() {
    return typeId;
  }

  public void setTypeId(String typeId) {
    this.typeId = typeId;
  }

  @Override

  public String toString() {
    return "Book{" +
            "bookId=" + bookId +
            ", bookName='" + bookName + '\'' +
            ", author='" + author + '\'' +
            ", price=" + price +
            ", sales=" + sales +
            ", stock=" + stock +
            ", imgPath='" + imgPath + '\'' +
            ", typeId='" + typeId+
            ", typeName='" + typeName+
            '}';
  }
  public Integer getBookId() {
    return bookId;
  }
  public void setBookId(Integer bookId) {
    this.bookId = bookId;
  }
  public String getBookName() {
    return bookName;
  }
  public void setBookName(String bookName) {
    this.bookName = bookName;
  }
  public String getAuthor() {
    return author;
  }
  public void setAuthor(String author) {
    this.author = author;
  }
  public Double getPrice() {
    return price;
  }
  public void setPrice(Double price) {
    this.price = price;
  }
  public Integer getSales() {
    return sales;
  }
  public void setSales(Integer sales) {
    this.sales = sales;
  }
  public Integer getStock() {
    return stock;
  }
  public void setStock(Integer stock) {
    this.stock = stock;
  }
  public String getImgPath() {
    return imgPath;
  }
  public void setImgPath(String imgPath) {
    this.imgPath = imgPath;
  }
}

